package BUS;

import java.util.ArrayList;

import DAO.picturesDAO;
import DTO.picturesDTO;

public class picturesBUS {
	
	public static long createPictures(int mapic, long maghichu, String url)
	{
		return picturesDAO.createPictures(mapic,maghichu, url);
	}
	
	public static boolean deletePicture(long rowId) {
        return picturesDAO.deletePicture(rowId);
    }
	
	public static boolean XoaTatCaHinhCuaMotGhiChu(long rowId) {
        return picturesDAO.XoaTatCaHinhCuaMotGhiChu(rowId);
    }
	
    public static ArrayList<picturesDTO> getAllPic() {

        return picturesDAO.getAllPic();
    }

    public static picturesDTO getPic(long rowId)
    {
        return picturesDAO.getPic(rowId);
    }

	public static ArrayList<picturesDTO> getAllPicfromNote(long rowId) {

		return picturesDAO.getAllPicfromNote(rowId);

	}
    public static boolean updatePic(long rowId, long maghichu, String url) {
        return picturesDAO.updatePic(rowId, maghichu, url);
    }
}
